#ifndef ARPTOOL_H
#define ARPTOOL_H

#include <QtGui/QMainWindow>
#include <QComboBox>
#include "ui_arptool.h"
#include "etherdevice.h"
#include "recvthread.h"
#include <vector>

class ArpTool : public QMainWindow
{
	Q_OBJECT
public:
	ArpTool(QWidget *parent = 0, Qt::WFlags flags = 0);
	~ArpTool();
public:
	bool init();
public slots:
	void onScan(bool);
	void onFindNewMachine(u_int32 ip, const u_int8* mac);
private:
	Ui::arptoolClass ui;
	QComboBox *ip_range_box;
	std::vector<EtherDevice> devices;
	RecvThread recv_thread;
};

#endif // ARPTOOL_H
